Endovascular treatment with placement of a flow-diverting stent